import request from "./request";

/**
 * 文件上传
 * @param params 文件对象
 */
export function uploadFile(params: FormData) {
  return request({
    url: "/communal/uploadFile",
    method: "post",
    headers: { "Content-Type": "multipart/form-data" },
    data: params,
  });
}